package com.sec.etech.bpm;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.scheduling.annotation.EnableAsync;

@ComponentScan(basePackages={"org.openbpm.*","com.sec.etech.*"}, excludeFilters={
        @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = {
                org.openbpm.bpm.plugin.usercalc.formfield.context.FormFieldUserPluginContext.class,
                org.openbpm.bpm.plugin.usercalc.formfield.executer.FormFieldUserPluginExecutor.class,
                org.openbpm.sys.aop.ErrAspect.class
        })
})
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableCaching
@EnableAsync
@ServletComponentScan
public class EtechIsmServer {
    public static void main(String[] args) {

        SpringApplication.run(EtechIsmServer.class, args);
    }
}
